<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	// 获得本项目的地址(例如: http://localhost:8080/MyApp/)赋值给basePath变量    
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<base href="<%=basePath%>">
<script src="<%=basePath%>js/jquery-1.9.1.js"></script>
<link href="<%=basePath%>css/style.css" rel="stylesheet"
	type="text/css" media="screen" />